use crate::{bootstrap::AppState, router::resp};
use axum::{
    extract::{Path, State},
    response::IntoResponse,
};
use serde::{Deserialize, Serialize};
use utoipa::{IntoParams, ToSchema};
pub mod webauthn;

#[derive(Debug, Serialize, Deserialize, ToSchema, IntoParams)]
pub struct SamplePath {
    #[param(example = "your name")]
    name: String,
}

#[utoipa::path(method(get), path = "/{name}", tag = "hello world", params(SamplePath))]
pub async fn hello_world(Path(query): Path<SamplePath>) -> impl IntoResponse {
    format!("hello world: {}", query.name).to_string()
}
